package com.gamejelly.srv.service.impl;

import com.gamejelly.proxy.autoConfiguration.RpcService;
import com.gamejelly.srv.domain.Student;
import com.gamejelly.srv.service.Test;

import java.util.Map;
import java.util.concurrent.CompletableFuture;

@RpcService(Test.class)
public class TestImpl implements Test {
    @Override
    public String echo(String str) {
        return str;
    }

    @Override
    public CompletableFuture<String> echo1(String str) {
        return CompletableFuture.completedFuture(str);
    }

    @Override
    public CompletableFuture<Boolean> send(Student str, Map<Integer, Integer> map) {
        return CompletableFuture.completedFuture(true);
    }

    @Override
    public Boolean req(Student str, Map<Integer, Integer> map) {
        return true;
    }
}
